package com.gxa.shop.controller;/**
 * @author JunYu
 * @create 2022-10-05--16:53
 */

import com.gxa.shop.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: take-out-project
 *
 * @description: 测试接口
 *
 * @author: JunYu
 *
 * @create: 2022-10-05 16:53
 **/
@RestController
public class TestController {

    @Autowired
    TestService service;
    @GetMapping(value = "/test", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public String Test()
    {
        return "fromShopController";
    }
    @GetMapping(value = "/testMVC", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public R TestMVC()
    {
        R insert = service.insert();
        return insert;
    }
}
